<template>
	<view v-if="is_init">
		<uni-popup-input name="注册详情" @close="on_close">

			<view class="p-20 bg-white" v-if="users_reg">

				<view class="banmi_info_view">
					<view class="bm_view">用户uid:</view>
					<text class="bm_text">{{users_reg.uid}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册时间:</view>
					<text class="bm_text">{{users_reg.time|getTime}}</text>
				</view>


				<view class="banmi_info_view">
					<view class="bm_view">注册的deviceBrand:</view>
					<text class="bm_text">{{users_reg.deviceBrand}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的oaid:</view>
					<text class="bm_text">{{users_reg.oaid}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的clientid:</view>
					<text class="bm_text">{{users_reg.clientid}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的上级邀请码:</view>
					<text class="bm_text">{{users_reg.code}}</text>
				</view>


				<view class="banmi_info_view">
					<view class="bm_view">注册的brand:</view>
					<text class="bm_text">{{users_reg.brand}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的appVersion:</view>
					<text class="bm_text">{{users_reg.appVersion}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的deviceModel:</view>
					<text class="bm_text">{{users_reg.deviceModel}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的model:</view>
					<text class="bm_text">{{users_reg.model}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的osAndroidAPILevel:</view>
					<text class="bm_text">{{users_reg.osAndroidAPILevel}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的platform:</view>
					<text class="bm_text">{{users_reg.platform}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的romName:</view>
					<text class="bm_text">{{users_reg.romName}}</text>
				</view>
				<view class="banmi_info_view">
					<view class="bm_view">注册的romVersion:</view>
					<text class="bm_text">{{users_reg.romVersion}}</text>
				</view>

				<view class="banmi_info_view">
					<view class="bm_view">注册的system:</view>
					<text class="bm_text">{{users_reg.system}}</text>
				</view>
				<view class="banmi_info_view">
					<view class="bm_view">注册的version:</view>
					<text class="bm_text">{{users_reg.version}}</text>
				</view>
				<view class="banmi_info_view">
					<view class="bm_view">注册的push_clientid:</view>
					<text class="bm_text">{{users_reg.push_clientid}}</text>
				</view>



			</view>

		</uni-popup-input>

	</view>
</template>

<script>
	import provinceData from '@/components/fd-picker/city-china.json';
	var find = {
		tel: '',
		account: '',
		nickname: '',
		face: '',
		face_type: 0,
		gender: 0,
		master_oen: 0,
		master_two: 0

	};
	export default {
		components: {},
		props: {

		},
		data() {
			return {
				users_reg: {

				},

				fromsData: {
					user_name: '',
					email: ''
				},
				is_init: false
			}
		},

		methods: {
			change_gender(e) {
				this.find.gender = e.detail.value;
			},
			confirm_face(vals) {
				if (vals.length == 0) {
					this.find.face = ''
					return
				}
				this.find.face = vals[0]['attachment']
			},


			async init(uid) {
				var that = this;
				that.uid = uid
				let requestParams = {
					uid: uid
				};
				const ret = await this.Banmikeji.user_reg_info(requestParams);
				this.users_reg = ret.data;
				this.is_init = true;








			},

			on_close() {
				this.find = {}
				this.is_init = false;
			},
			//js分类方法

		}
	}
</script>

<style>
	button::after {
		border: none;
	}

	.banmi_info_view {
		display: flex !important;
		display: -webkit-flex !important;
		display: -webkit-box;
		padding: 20px 20px;
		border-bottom: solid 1px #F6F6F6;

		.bm_view {
			font-size: 14px;
			color: #A9A9A9;
			width: 160px;
		}

		.bm_text {
			font-size: 14px;
			color: #333;
			flex: 1;
			width: 100%;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 1;
			-webkit-box-orient: vertical;
			overflow: hidden;
			lines: 1;
			text-overflow: ellipsis;
		}
	}

	.top_head {
		background-color: #F8F8F8;
		width: 100%;
		top: 0;
		left: 0;
		z-index: 999;
		position: sticky
	}

	.but {
		width: 120rpx;
		height: 100rpx;
		padding: 0;
		border: 0;
		background-color: transparent;
		outline: none;
	}
</style>